/* communication.h */

#ifndef COMMUNICATION_H_
#define COMMUNICATION_H_

#define PERM 0666
#define C2S_KEY 9999
#define S2C_KEY 9998

#define MAX_MSG_LEN 512

typedef struct msg_data{
	long type;
	char text[MAX_MSG_LEN];
} msg_data_t;

int communication_init(void);
int send_msg(const char * msg);
int recv_msg(char * buf, int max_len);

#endif /* COMMUNICATION_H_ */
